package com.sishu.websocket4.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sishu.websocket4.pojo.MapSites;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface MapSitesMapper extends BaseMapper<MapSites> {

//    @Insert("INSERT INTO `Groups` (group_member,group_id) VALUES (#{groupMember},#{gruopId})")
//    void insertAssets(Assets assets);

    @Select("select * from MapSites where site_id = #{siteid}")
    MapSites selectbysiteid(String siteid);



    @Update("UPDATE MapSites SET status = 1 where site_id = #{siteid}")
    void updatestatus(String siteid);
}
